package com.coding.pojo;

import java.io.Serializable;

/**
 * poet
 * @author 
 */
public class Poet implements Serializable {
    private Integer poet_id;

    private Integer poet_imageid;

    private Integer poet_ways;

    private Integer poet_video_id;

    private String poet_name;

    private String poet_dynasty;

    private String poet_intro;

    private String poet_tag;

    private String poet_more1;

    private String poet_more2;

    OssImages ossImages;

    Video video;

    private static final long serialVersionUID = 1L;

    public OssImages getOssImages() {
        return ossImages;
    }

    public void setOssImages(OssImages ossImages) {
        this.ossImages = ossImages;
    }

    public Video getVideo() {
        return video;
    }

    public void setVideo(Video video) {
        this.video = video;
    }

    public Integer getPoet_id() {
        return poet_id;
    }

    public void setPoet_id(Integer poet_id) {
        this.poet_id = poet_id;
    }

    public Integer getPoet_imageid() {
        return poet_imageid;
    }

    public void setPoet_imageid(Integer poet_imageid) {
        this.poet_imageid = poet_imageid;
    }

    public Integer getPoet_ways() {
        return poet_ways;
    }

    public void setPoet_ways(Integer poet_ways) {
        this.poet_ways = poet_ways;
    }

    public Integer getPoet_video_id() {
        return poet_video_id;
    }

    public void setPoet_video_id(Integer poet_video_id) {
        this.poet_video_id = poet_video_id;
    }

    public String getPoet_name() {
        return poet_name;
    }

    public void setPoet_name(String poet_name) {
        this.poet_name = poet_name;
    }

    public String getPoet_dynasty() {
        return poet_dynasty;
    }

    public void setPoet_dynasty(String poet_dynasty) {
        this.poet_dynasty = poet_dynasty;
    }

    public String getPoet_intro() {
        return poet_intro;
    }

    public void setPoet_intro(String poet_intro) {
        this.poet_intro = poet_intro;
    }

    public String getPoet_tag() {
        return poet_tag;
    }

    public void setPoet_tag(String poet_tag) {
        this.poet_tag = poet_tag;
    }

    public String getPoet_more1() {
        return poet_more1;
    }

    public void setPoet_more1(String poet_more1) {
        this.poet_more1 = poet_more1;
    }

    public String getPoet_more2() {
        return poet_more2;
    }

    public void setPoet_more2(String poet_more2) {
        this.poet_more2 = poet_more2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Poet other = (Poet) that;
        return (this.getPoet_id() == null ? other.getPoet_id() == null : this.getPoet_id().equals(other.getPoet_id()))
            && (this.getPoet_imageid() == null ? other.getPoet_imageid() == null : this.getPoet_imageid().equals(other.getPoet_imageid()))
            && (this.getPoet_ways() == null ? other.getPoet_ways() == null : this.getPoet_ways().equals(other.getPoet_ways()))
            && (this.getPoet_video_id() == null ? other.getPoet_video_id() == null : this.getPoet_video_id().equals(other.getPoet_video_id()))
            && (this.getPoet_name() == null ? other.getPoet_name() == null : this.getPoet_name().equals(other.getPoet_name()))
            && (this.getPoet_dynasty() == null ? other.getPoet_dynasty() == null : this.getPoet_dynasty().equals(other.getPoet_dynasty()))
            && (this.getPoet_intro() == null ? other.getPoet_intro() == null : this.getPoet_intro().equals(other.getPoet_intro()))
            && (this.getPoet_tag() == null ? other.getPoet_tag() == null : this.getPoet_tag().equals(other.getPoet_tag()))
            && (this.getPoet_more1() == null ? other.getPoet_more1() == null : this.getPoet_more1().equals(other.getPoet_more1()))
            && (this.getPoet_more2() == null ? other.getPoet_more2() == null : this.getPoet_more2().equals(other.getPoet_more2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPoet_id() == null) ? 0 : getPoet_id().hashCode());
        result = prime * result + ((getPoet_imageid() == null) ? 0 : getPoet_imageid().hashCode());
        result = prime * result + ((getPoet_ways() == null) ? 0 : getPoet_ways().hashCode());
        result = prime * result + ((getPoet_video_id() == null) ? 0 : getPoet_video_id().hashCode());
        result = prime * result + ((getPoet_name() == null) ? 0 : getPoet_name().hashCode());
        result = prime * result + ((getPoet_dynasty() == null) ? 0 : getPoet_dynasty().hashCode());
        result = prime * result + ((getPoet_intro() == null) ? 0 : getPoet_intro().hashCode());
        result = prime * result + ((getPoet_tag() == null) ? 0 : getPoet_tag().hashCode());
        result = prime * result + ((getPoet_more1() == null) ? 0 : getPoet_more1().hashCode());
        result = prime * result + ((getPoet_more2() == null) ? 0 : getPoet_more2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", poet_id=").append(poet_id);
        sb.append(", poet_imageid=").append(poet_imageid);
        sb.append(", poet_ways=").append(poet_ways);
        sb.append(", poet_video_id=").append(poet_video_id);
        sb.append(", poet_name=").append(poet_name);
        sb.append(", poet_dynasty=").append(poet_dynasty);
        sb.append(", poet_intro=").append(poet_intro);
        sb.append(", poet_tag=").append(poet_tag);
        sb.append(", poet_more1=").append(poet_more1);
        sb.append(", poet_more2=").append(poet_more2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}